<!DOCTYPE html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <title>你的城市色彩——性格测试</title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="/assets/activity/footprint/css/test.css">
    <link rel="stylesheet" type="text/css" href="/assets/activity/footprint/css/notice.css" />
	<script src="/assets/activity/footprint/js/jquery-2.1.0.min.js"></script>
	<script src="/assets/activity/footprint/js/jquery.easings.min.js"></script>
	<script src="/assets/activity/footprint/js/notice.js"></script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript">
		$(window).load(function(){
			$('.pop-box1').hide();
		});
		wx.config({
			debug: false,
			appId: "{BEESCRM:$appid}",
			timestamp: "{BEESCRM:$timestamp}",
			nonceStr: "{BEESCRM:$noncestr}",
			signature: "{BEESCRM:$signature}",
			jsApiList: ['checkJsApi','onMenuShareTimeline','onMenuShareAppMessage','hideOptionMenu','scanQRCode'],
			});
		
		wx.ready(function(){
			var from = "footprint";
			var url = '';
			var imgUrl = "http://wap.beescrm.com/assets/activity/footprint/images/getheadimg.png";
			var title = "砖家说，我是杭州活力点子王，你呢？【进入测试】";
			var desc = "一座城，7种颜色，专属你的杭州城市颜色是什么？";
			
			//分享到朋友圈
			wx.onMenuShareTimeline({
				title: title, // 分享标题
				link: url, // 分享链接
				imgUrl: imgUrl, // 分享图标
				success: function () { 
					// 用户确认分享后执行的回调函数
					// share(); 
				},
				cancel: function () { 
					// 用户取消分享后执行的回调函数
					/* alert('已取消'); */
				}
			});
			//发送给好友
			wx.onMenuShareAppMessage({
				title: title, // 分享标题
				desc: desc, // 分享描述
				link: url, // 分享链接
				imgUrl: imgUrl, // 分享图标
				type: '', // 分享类型,music、video或link，不填默认为link
				dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
				success: function () { 
					// 用户确认分享后执行的回调函数
					 //share();
				},
				cancel: function () { 
					// 用户取消分享后执行的回调函数
				}
			});
		});
		
		function share(){
			$.ajax({
				type:'post',
				dataType:'json',
				data:{},
				url:"{WE2LIFE::U('')}",
				success:function(data){
					/* location.href = "{WE2LIFE::U('')}"; */
				}
			});
		}  
	</script>
</head>